package com.egrid.point.bury.dao;

import com.egrid.point.bury.entity.ConfigProperties;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ConfigPropertiesDao extends JpaRepository<ConfigProperties,Long> {

    @Query(value = "SELECT * FROM TT_CONFIG_PROPERTIES ORDER BY CREATE_DATE DESC",nativeQuery = true)
    List<ConfigProperties> findByCreateDate(Pageable pageable);

}
